﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Marbles.Core.Content.Links;
using Marbles.Core.Content.CDN;

namespace Marbles.Web.Admin.Content
{
    public partial class Links : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.ClientScript.IsClientScriptIncludeRegistered("marblesApplication")) { Page.ClientScript.RegisterClientScriptInclude("marblesApplication", Resources.ResourceHandler.GetApplicationJavascript(this)); }
            
            CDNParser cdn = new CDNParser();
            cdn.RegisterHeaderIncludes(this);

            

            LoadData();
        }

        private void LoadData()
        {
            LinkCollection items = new LinkCollection(Core.Content.Sites.SiteDefinition.GetCurrent().SiteId);
            cGrdFiles.DataSource = items;
            cGrdFiles.DataBind();
        }

    }
}